package com.cmc.cloud.cmclink.doc.vo.voyagebsacbatemplatevo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.*;

import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 分类舱位自动批舱模版 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VoyageBsaCbaTemplateBaseVO {

    @Schema(description = "模板名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotBlank(message = "｛VoyageBsaCbaTemplateBaseVO.templateName.NotBlank｝")
    @Length(max = 50, message = "｛VoyageBsaCbaTemplateBaseVO.templateName.Length｝")
    private String templateName;

    @Schema(description = "港口", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "｛VoyageBsaCbaTemplateBaseVO.portCode.NotBlank｝")
    @Length(max = 5, message = "｛VoyageBsaCbaTemplateBaseVO.portCode.Length｝")
    private String portCode;

    @Schema(description = "模板备注", example = "你猜")
    @Length(max = 200, message = "｛VoyageBsaCbaTemplateBaseVO.templateRemark.Length｝")
    private String templateRemark;

}
